package guda.house.biz.form;

import guda.house.dal.dataobject.SmsDO;

import javax.validation.constraints.NotNull;


public class SmsForm {


    @NotNull(message = "不能为空")
    private String phoneArray;
    @NotNull(message = "不能为空")
    private Long villageId;

    public Long getVillageId() {
        return villageId;
    }

    public void setVillageId(Long villageId) {
        this.villageId = villageId;
    }

    public SmsDO toDO() {
        SmsDO smsDO = new SmsDO();
        smsDO.setPhoneArray(phoneArray);
        smsDO.setVillageId(villageId);
        return smsDO;
    }

    public String getPhoneArray() {
        return phoneArray;
    }

    public void setPhoneArray(String phoneArray) {
        this.phoneArray = phoneArray;
    }
}
